package com.bgt.service.impl;

import java.util.List;
import java.util.Map;

import com.bgt.dao.MUserDao;
import com.bgt.model.MUser;
import com.bgt.service.MUserService;

public class MUserServiceImpl implements MUserService {
	private MUserDao userDao=new MUserDao();
	
	public MUser getUserById(String Id) {
		MUser user=userDao.getUserById(Id);
		return user;
	}
	public MUser getUserByNameAndPwd(String Name,String pwd) {
		MUser user=userDao.getUserByNameAndPwd(Name, pwd);
		return user;
	}
	public void addUser(MUser user) {
		System.out.println(user);
		userDao.addUser(user);
	}
	public List<MUser> getUsersPage(Map<String, String> params) {
		return userDao.getUsersPage(params);
	}
	public List<MUser> getUsersPage2(Map<String, String> params) {
		return userDao.getUsersPage2(params);
	}
	public int countUsersPage2(Map<String, String> params) {
		return userDao.countUsersPage2(params);
	}

}
